package core.tech.utilies;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;

public abstract class CollectionUtils {
	@SuppressWarnings("unchecked")
	public <T> List<T> removeDuplicates(List<T> list) {
		HashSet<Object> set = new HashSet<Object>(list);
		list.clear();
		list.addAll((Collection<? extends T>) set);
		return list;
	}
}